<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../config/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>: <@s.m "admin.function"/> - <@s.m "global.list"/></div>
                </div>

                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form id="tableForm" method="post" class="am-form">
                            <input type="hidden" name="pageNo" value="${pageNo!}"/>
                            <@p.table value=map1?keys;admin,i,has_next><#rt/>
                            <@p.column code="admin.username">${admin}</@p.column><#t/>
                        <@p.column code="错误次数"><#if map1[admin] gt 2><font color="red">${map1[admin]}</font><#else>${map1[admin]}</#if></@p.column><#t/>
                    <@p.column code="解锁" align="center">
                    <a href="javascript:void(0);"onclick="unLock('${admin!}')">是</a>

                </@p.column><#t/>
            </@p.table>
            </form>
            </div>
    </div>



    </div>

    </div>

<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("<@s.m 'global.confirm.delete'/>")) {
		return;
	}
	var f = getTableForm();
	f.action="o_delete.do";
	f.submit();
}
function  unLock(username){alert(username);
	$.post("unlock.do",{username:username},function(data){
              alert(data);
              location.href="list.do";
		});
}
</script>

<#include "/common/alert_message.html"/>
</body>
</html>